﻿//adds click functions to the links to display the correct div from the menu.
$(document).ready(function () {
    $('#linkQor').click(function() {
        hideDivs();
        $('.divQorResult').css("display", "block");
        return false;
    });
    $('#linkMemory').click(function () {
        hideDivs();
        $('#divMemoryResult').css("display", "block");
        return false;
    });
    $('#linkTmt').click(function () {
        hideDivs();
        $('#divTMTResult').css("display", "block");
        return false;
    });
    $('#linkPric').click(function () {
        hideDivs();
        $('.divPricResult').css("display", "block");
        return false;
    });
    $('#linkStroop').click(function () {
        hideDivs();
        $('#divStroopResult').css("display", "block");
        return false;
    });
});

//hides all divs.
function hideDivs() {
    $("#divMemoryResult").css("display", "none");
    $("#divTMTResult").css("display", "none");
    $("#divStroopResult").css("display", "none");
    $(".divPricResult").css("display", "none");
    $(".divQorResult").css("display", "none");
}


